package cn.broadsense.biz.domain;

import cn.broadsense.biz.handler.ChannelGovernanceHandler;
import cn.broadsense.biz.vo.ChannelGovernanceVo;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 点位治理列表
 *
 * @author bs
 * @TableName t_channel_governance
 */
@TableName(value = "t_channel_governance",autoResultMap = true)
@Data
@ApiModel("点位治理列表")
public class ChannelGovernance implements Serializable {
    private static final long serialVersionUID = 2110058690791110960L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "治理的数据量", example = "1000")
    private Integer dataQty;

    @ApiModelProperty(value = "处理后的结果数据量", example = "800")
    private Integer resultQty;

    @ApiModelProperty(value = "使用的治理规则数量", example = "5")
    private Integer ruleQty;

    @ApiModelProperty(value = "空值数据的数量", example = "150")
    private Integer emptyQty;

    @ApiModelProperty(value = "重复数据的数量", example = "20")
    private Integer repeatQty;


    @ApiModelProperty(value = "数据筛选所依据的条件")
    @TableField(value = "filter_criteria", typeHandler = ChannelGovernanceHandler.class)
    private ChannelGovernanceVo filterCriteria;


    /**
     * 治理状态
     */
    @ApiModelProperty(value = "治理状态  0=未治理 1=已治理")
    private Integer status;
    /**
     * 同步状态
     */
    @ApiModelProperty(value = "同步状态  0=未同步 1=已同步")
    private Integer syncStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
}